package com.itheima.demo;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/10 9:28
 */
public class Demo_001 {
    public static void main(String[] args) {
        FileInputStream fis = null;
        try {
            fis = new FileInputStream("demo_001\\123.txt");
            int read = fis.read();
            System.out.println((char) read);
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if (fis != null) {
                    fis.close();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }

        }
    }
}
